﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QLNS.Class;
namespace QLNS.NghiepVu
{
    public partial class frmSuaHopDong : Form
    {
        public frmSuaHopDong()
        {
            InitializeComponent();
        }
        DB cn = new DB();
        private void frmSuaHopDong_Load(object sender, EventArgs e)
        {
            cn.KetNoi();

            txtDaiDien.Text = "Trường THPT Nhữ Văn Lan";
            txtDiaChi.Text = "Khu 4 thị trấn Tiên Lãng thành phố Hải Phòng";
            txtSDT.Text = "0313683540";


            txtMaHopDong.Text = cn.SinhMa("MaHopDong", "HopDong", "HD");

            cmbLoaiHopDong.DataSource = cn.getTable("select *from LoaiHopDong");
            cmbLoaiHopDong.DisplayMember = "TenLoaiHopDong";
            cmbLoaiHopDong.ValueMember = "MaLoaiHopdong";

            cmbChucVu.DataSource = cn.getTable("select *from ChucVu");
            cmbChucVu.DisplayMember = "TenChucVu";
            cmbChucVu.ValueMember = "MaChucVu";

            cmbToMon.DataSource = cn.getTable("select *from ToMon");
            cmbToMon.DisplayMember = "TenToMon";
            cmbToMon.ValueMember = "MaToMon";

            cmbPhuCap.DataSource = cn.getTable("select *from PhuCap");
            cmbPhuCap.DisplayMember = "TienPhuCap";
            cmbPhuCap.ValueMember = "MaPhucap";

            cmbBacLuong.DataSource = cn.getTable("select *from BacLuong");
            cmbBacLuong.DisplayMember = "HeSo";
            cmbBacLuong.ValueMember = "MaBacLuong";
            //txtMaHopDong.Text = frmQuanLyHopDongLaoDong._MaHopDong;
            //txtMaNhanVien.Text = frmQuanLyHopDongLaoDong._MaNhanVien;


        }
    }
}
